﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Viewer.Base.Config;

namespace Viewer.UserControls
{
    public partial class UCReporting : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void LoadReport(string strParameter)
        {
            //đọc từ web.config
            int height = Convert.ToInt32(ViewerConstant.ReportHeight);
            string[] strparameters = strParameter.Split(',');

            wdReporting.Hidden = false;
            wdReporting.Title = "Báo Cáo " + strparameters[0];
            wdReporting.Show();
            wdReporting.AutoLoad.Url = "~/NhanSu/Reporting/RptForm.aspx?para=" + strParameter;
            wdReporting.Height = height;
            wdReporting.LoadContent();
        }
    }
}